home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer Source 9
/
developer source - volume 9.iso
/
sdevl
/
oct95
/
coadf106.gif
< prev
next >
Graphics Interchange Format
|
1998-02-10
|
110KB
|
803x520
|
4-bit (16 colors)
Labels:
text
|
screenshot
|
colorfulness
|
number
|
font
OCR:
Figure 6. "Sale Calculates Its Total" Scenario View (Round III) Sale SaleLineltem Item Store TaxCategory Scenario: Sale Calculates its Total Scenario Constraint: calcTotal calcSubtotal howMuch ForQty getTaxCat getTaxCat 0.1 seconds, 9 out of 10 times, caicSubtotal howMuchinTaxCat getPriceForDate 0.5 seconds max. calcTax howMuchInTaxCat sale.calciotal ( ; total) sale.calcSubtotal ( ; subtotal) sale, Lineltem.calcSubtotal (date ; subtotal) item. howMuchForQty (qty, date ; amt) .... item.getPriceForDate (date ; price) sale.calcTax ( : totalTax) store.getTaxCat ( : taxCategories) // for all tax categories saleslineltem.howMuchinTaxCat (taxCat ; taxAmt) item.howMuchInTaxCat (taxCat ; amt) item. getPriceForDate (date ; price) taxCategory.getTaxRate ( ; rate) ENDO